{extend name="public/base"}

{block name="title"}就行天下-店铺详情{/block}

{block name="style"}
<link rel="stylesheet" href="__STATIC__/home/css/index.css" />
{/block}

{block name="main"}
<div class="pageControl storeDetail bg-f7">
    <div class="main-top"></div>
    <div class="msui_nav msui_navTop noBorder">
        <a class="msui_navTop-back" href="javascript:history.back();"><i class="micon-back"></i></a>
        <h1 class="msui_navTop-title">{$data.name}</h1>
        <a href="" class="msui_navTop-right msui_navTop-cnav"><i class="micon-cnav"></i></a>
    </div>
    <div>
        <img src="__STATIC__/home/images/sd1.png" alt="">
    </div>
    <div class="weui-cell storeDetail-top">
        <div class="weui-cell__hd">
            <img src="{$data.logo}" alt="">
        </div>
        <div class="weui-cell__bd">
            <p>{$data.name}</p>
            <div class="storeDetail-xx">
                <p class="xx">
                    <!--满星星加class为 active-->
                    <span {gt name="data.level" value="0"} class="active" {/gt}></span>
                    <span {gt name="data.level" value="1"} class="active" {/gt}></span>
                    <span {gt name="data.level" value="2"} class="active" {/gt}></span>
                    <span {gt name="data.level" value="3"} class="active" {/gt}></span>
                    <span {gt name="data.level" value="4"} class="active" {/gt}></span>
                </p>
                <span class="fs06 cl-ff9 exclusive-count">{$data.level}分</span>
            </div>
        </div>
        <div class="weui-cell__ft">
            <span class="fs065 cl-3333">累积销售：{$data.order_num}单</span>
        </div>
    </div>
    <div class="weui-cell">
        <div class="weui-cell__hd mr05">
            <span class="fs065">地址: </span>
        </div>
        <div class="weui-cell__bd">
            <span class="fs065" style="margin-left: 0">{$data.address}</span>
        </div>
    </div>
    <div class="my-flex2">
        <a href="{:url('rong/index', ['id' => $data['id']])}" class="flex-list">
            <img src="__STATIC__/home/images/sd2.png" alt="">
            <span class="fs06">
                联系商家
            </span>
        </a>
        <a href="javascript:;" class="flex-list">
            <img src="__STATIC__/home/images/sd3.png" alt="">
            <span class="fs06">
                致电商家
            </span>
        </a>
    </div>
    <div class="weui-cells">
        <div class="weui-cell">
            <div class="weui-cell__bd">
                <span class="fs065">经营项目</span>
            </div>
        </div>
        <div class="my-flex" style="justify-content: flex-start;border-top: 1px solid #f3f3f3;: ">
            {volist name="data.category_all" id="vo"}
            {in name="vo.id" value="$data.category"}
            <a href="{:url('product/index', ['category_id' => $vo['id'], 'shop_id' => $data['id']])}" class="flex-list25" style="border-top: none">
                <span class="fs07">
                    {$vo.name}
                </span>
            </a>
            {/in}
            {/volist}
        </div>
    </div>
    <div class="weui-cells">
        <div class="weui-cell weui-cell_access">
            <div class="weui-cell__bd">
                <span>评论</span>
            </div>
            <div class="weui-cell__ft shop-comment">
                <span>{$data.comment_num}条评论</span>
            </div>
        </div>
        {empty name="data.comment"}
        <p class="fs07" style="margin: 1rem auto; text-align: center;">暂无评论</p>
        {else /}
        {volist name="data.comment" id="vo"}
        <div class="weui-cell discussList-list">
            <div class="weui-cell__hd exclusiveImg">
                <img src="{$vo.headimgurl}" alt="">
            </div>
            <div class="weui-cell__bd">
                <p class="fs08">{$vo.nickname}</p>
                <p class="xx">
                    <!--满星星加class为 active-->
                    <span {gt name="vo.level" value="0"} class="active" {/gt}></span>
                    <span {gt name="vo.level" value="1"} class="active" {/gt}></span>
                    <span {gt name="vo.level" value="2"} class="active" {/gt}></span>
                    <span {gt name="vo.level" value="3"} class="active" {/gt}></span>
                    <span {gt name="vo.level" value="4"} class="active" {/gt}></span>
                </p>
                <p class="fs06">{$vo.msg}</p>
                <div class="discussList-list-img viewImage">
                    {volist name="vo.images" id="v"}
                    <img class="viewPhone" data-img="{$i}" src="{$v}" alt="{$v}">
                    {/volist}
                </div>
                <div class="fs06 cl-9999"> <span>{$vo.product_name}</span></div>
            </div>
            <div class="weui-cell__ft">
            <span class="cl-9999 fs06">
                {$vo.create_time|date="Y-m-d H:i", ###}
            </span>
            </div>
        </div>
        {/volist}
        {/empty}
        <div class="weui-cell">
            <div class="weui-cell__bd">
                <span>开店时间</span>
            </div>
            <div class="weui-cell__ft">
                <span class="fs06">{$data.audit_time|date="Y-m-d",###}</span>
            </div>
        </div>
        <div class="weui-cell ftAbsolute">
            <div class="weui-cell__bd viewImage">
                <span>营业执照</span>
                <div class="jingying">
                    <div>
                        <img class="viewPhone" data-img="0" src="{$data.business_license_image}" alt="__STATIC__/home/images/sd4.png">
                        <p class="fs06 text-center">营业执照照片</p>
                    </div>
                    <div>
                        <img class="viewPhone" data-img="1" src="{$data.business_certificate}" alt="__STATIC__/home/images/sd4.png">
                        <p class="fs06 text-center">经营许可证</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}

{block name="javascript"}

{/block}